// *Author：jxx
// *Contact：283591387@qq.com
// *代码由框架生成,任何更改都可能导致被代码生成器覆盖
export default function(){
    const table = {
        key: 'packageid',
        footer: "Foots",
        cnName: '包装规格',
        name: 'ysl_package',
        url: "/ysl_package/",
        sortName: "packageid"
    };
    const tableName = table.name;
    const tableCNName = table.cnName;
    const newTabEdit = false;
    const key = table.key;
    const editFormFields = {"codeid":"","package_name":"","mixed_packaging":"","in_long":"","in_width":"","in_hight":"","in_minweight":"","in_maxweight":"","in_capacity":"","out_long":"","out_width":"","out_hight":"","out_minweight":"","out_maxweight":"","out_capacity":"","e_long":"","e_width":"","e_hight":"","e_minweight":"","e_maxweight":"","e_capacity":"","packdesc":""};
    const editFormOptions = [[{"title":"编码","field":"codeid"},
                               {"title":"名称","field":"package_name"}],
                              [{"dataKey":"性别","data":[],"title":"混包类型","field":"mixed_packaging","type":"select"}],
                              [{"title":"内箱长","field":"in_long","type":"number"},
                               {"title":"内箱宽","field":"in_width","type":"number"},
                               {"title":"内箱高","field":"in_hight","type":"number"}],
                              [{"title":"内箱重量","field":"in_minweight","type":"decimal"},
                               {"title":"内箱重量","field":"in_maxweight","type":"decimal"},
                               {"title":"内箱容量","field":"in_capacity","type":"decimal"}],
                              [{"title":"外箱长","field":"out_long","type":"number"},
                               {"title":"外箱宽","field":"out_width","type":"number"},
                               {"title":"外箱高","field":"out_hight","type":"number"}],
                              [{"title":"外重量","field":"out_minweight","type":"decimal"},
                               {"title":"外重量","field":"out_maxweight","type":"decimal"},
                               {"title":"外容量","field":"out_capacity","type":"decimal"}],
                              [{"title":"板长","field":"e_long","type":"number"},
                               {"title":"板宽","field":"e_width","type":"number"},
                               {"title":"板高","field":"e_hight","type":"number"}],
                              [{"title":"板重量","field":"e_minweight","type":"decimal"},
                               {"title":"板重量","field":"e_maxweight","type":"decimal"},
                               {"title":"板容量","field":"e_capacity","type":"decimal"}],
                              [{"title":"描述","field":"packdesc","type":"textarea"}]];
    const searchFormFields = {};
    const searchFormOptions = [];
    const columns = [{field:'packageid',title:'主键',type:'bigint',sort:true,width:110,hidden:true,readonly:true,require:true,align:'left'},
                       {field:'codeid',title:'编码',type:'string',width:180,align:'left'},
                       {field:'package_name',title:'名称',type:'string',width:180,align:'left'},
                       {field:'mixed_packaging',title:'混包类型',type:'string',bind:{ key:'性别',data:[]},width:180,align:'left'},
                       {field:'in_long',title:'内箱长',type:'int',width:110,align:'left'},
                       {field:'in_width',title:'内箱宽',type:'int',width:110,align:'left'},
                       {field:'in_hight',title:'内箱高',type:'int',width:110,align:'left'},
                       {field:'in_minweight',title:'内箱重量',type:'decimal',width:110,align:'left'},
                       {field:'in_maxweight',title:'内箱重量',type:'decimal',width:110,align:'left'},
                       {field:'in_capacity',title:'内箱容量',type:'decimal',width:110,align:'left'},
                       {field:'out_long',title:'外箱长',type:'int',width:110,align:'left'},
                       {field:'out_width',title:'外箱宽',type:'int',width:110,align:'left'},
                       {field:'out_hight',title:'外箱高',type:'int',width:110,align:'left'},
                       {field:'out_minweight',title:'外重量',type:'decimal',width:110,align:'left'},
                       {field:'out_maxweight',title:'外重量',type:'decimal',width:110,align:'left'},
                       {field:'out_capacity',title:'外容量',type:'decimal',width:110,align:'left'},
                       {field:'e_long',title:'板长',type:'int',width:110,align:'left'},
                       {field:'e_width',title:'板宽',type:'int',width:110,align:'left'},
                       {field:'e_hight',title:'板高',type:'int',width:110,align:'left'},
                       {field:'e_minweight',title:'板重量',type:'decimal',width:110,align:'left'},
                       {field:'e_maxweight',title:'板重量',type:'decimal',width:110,align:'left'},
                       {field:'e_capacity',title:'板容量',type:'decimal',width:110,align:'left'},
                       {field:'packdesc',title:'描述',type:'string',width:180,align:'left'},
                       {field:'fild1',title:'绑定产品',type:'string',width:180,hidden:true,align:'left'},
                       {field:'fild2',title:'fild2',type:'string',width:180,hidden:true,align:'left'},
                       {field:'fild3',title:'fild3',type:'string',width:180,hidden:true,align:'left'},
                       {field:'fild4',title:'fild4',type:'string',width:180,hidden:true,align:'left'}];
    const detail ={columns:[]};
    const details = [];

    return {
        table,
        key,
        tableName,
        tableCNName,
        newTabEdit,
        editFormFields,
        editFormOptions,
        searchFormFields,
        searchFormOptions,
        columns,
        detail,
        details
    };
}